package ddd1;

import java.util.ArrayList;
import java.util.Scanner;

public class work1 {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        int count = 0;
        int number ;
        for (int i = 0; i < 200;) {
            number = sc.nextInt();
            if(number>0 && number<=100){

                list.add(number);
                count++;
                i++;
            }
            System.out.println("第"+count+"个数字为"+list.get(list.size()-1));
        }

    }
}
